package com.open.capacity.common.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Set;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author 作者 gitgeek
 * @version 创建时间：2018-08-06 21:29
 * 类说明  菜单实体
 */
@Data
@TableName("stt_menu")
@EqualsAndHashCode(callSuper=true)
public class SttMenu extends Model<SttMenu> implements Serializable {

    private static final long serialVersionUID = 749360940290141180L;
    @TableId(value = "menuid")
    @JsonSerialize(using=ToStringSerializer.class)
    private Long id;
    @TableField(value="parent")
    @JsonSerialize(using=ToStringSerializer.class)
    private Long parentId;
    @TableField(value="mename")
    private String name;
    @TableField(value="meurl")
    private String url;
    @TableField(value="mepath")
    private String path;
    @TableField(value="mencss")
    private String css;
    @TableField(value="mesort")
    private Integer sort;
    @TableField(value="crtime")
    private Date createTime;
    @TableField(value="uptime")
    private Date updateTime;
    private String remark;
    @TableField(value="ismenu")
    private Integer isMenu;
    @TableField(value="ishide")
    private Boolean hidden;
    @TableField(exist=false)
    private List<SttMenu> subMenus;
    @TableField(exist=false)
    private Long roleId;
    @TableField(exist=false)
    private Set<Long> menuIds;



}
